﻿using FlyingEye.EntityFrameworkCore;
using FlyingEye.TaskSchedulers;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace FlyingEye
{
    [DependsOn(typeof(AbpAutoMapperModule),
        typeof(DeviceOpsServiceEntityFrameworkCoreModule))]
    public class DeviceOpsServiceApplicationModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddHttpClient();
            context.Services.AddTaskSchedulers();

            this.Configure<AbpAutoMapperOptions>(options =>
            {
                options.AddProfile<ApplicationProfile>();
            });

            base.ConfigureServices(context);
        }
    }
}
